import React from 'react'
import { Redirect, Route, Switch } from 'react-router-dom'
import PartsSteps from '../../../views/parts/PartsSteps'
import ProductSteps from '../../../views/products/ProductSteps'
import QrCodeSteps from '../../../views/qrcodes/QrCodeSteps'
import OverhaulSteps from '../../../views/overhaul/OverhaulSteps'
export default function NewRouter(props) {
  return (
    <Switch>
      <Route path="/parts" component={PartsSteps}></Route>
      <Route path="/products" component={ProductSteps}></Route>
      <Route path="/qrcodes" component={QrCodeSteps}></Route>
      <Route path="/overhaul" component={OverhaulSteps}></Route>
      {/* <Route path="/course-manage/arrange" component={CourseArrange}></Route>
      <Route path="/course-manage/arrangeadd" component={CourseArrangeAdd}></Route>
      <Route path="/course-manage/arrangeEditor" component={CourseArrangeEditor}></Route>
      <Route path="/attendance-manage/all" component={AttendanceAll}></Route>
      <Route path="/attendance-manage/class" component={AttendanceClass}></Route>
      <Route path="/data-manage" component={Data}></Route>  */}
      <Redirect from="/" to="/parts"></Redirect>
    </Switch>

  )
}

